package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author fanp
 * @since 2021-02-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_replacement")
public class ReplacementDo extends Model<ReplacementDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("cod")
    private Integer cod;

    @TableField("output_order_id")
    private Long outputOrderId;

    @TableField("output_order_no")
    private String outputOrderNo;

    @TableField("output_shop_id")
    private Long outputShopId;

    @TableField("output_commodity_sku")
    private String outputCommoditySku;

    @TableField("output_address")
    private String outputAddress;

    @TableField("output_receiver_name")
    private String outputReceiverName;

    @TableField("output_company_id")
    private Long outputCompanyId;

    @TableField("output_tel_phone")
    private String outputTelPhone;

    @TableField("output_area")
    private String outputArea;

    @TableField("need_photo")
    private Integer needPhoto;

    @TableField("order_type")
    private Integer orderType;

    @TableField("order_no")
    private String orderNo;

    @TableField("commodity_sku")
    private String commoditySku;

    /**
     * 数量
     */
    @TableField("number")
    private Integer number;

    @TableField("product_name")
    private String productName;

    /**
     * 图片链接
     */
    @TableField("file_id")
    private long fileId;

    @TableField("confirm_file_id")
    private Long confirmFileId;
    /**
     * 是否发货  下单0 审核1 发货2
     */
    @TableField("status")
    private Integer status;

    /**
     * 颜色
     */
    @TableField("color")
    private String color;

    /**
     * 备注
     */
    @TableField("tips")
    private String tips;

    @TableField("track_number")
    private String trackNumber;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private Long createBy;

    @TableField("deal_time")
    private Date dealTime;

    @TableField("deal_by")
    private Long dealBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("delete_by")
    private Long deleteBy;

    @TableField("delete_time")
    private Date deleteTime;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField("output_storage_id")
    private Long outputStorageId;

    @TableField("output_post_code")
    private String outputPostCode;

    @TableField("productInfo_id")
    private Long productInfoId;

    @TableField("size")
    private Integer size;

    @TableField("is_devanning")
    private Integer isDevanning;

    @TableField("track_id")
    private Long trackId;

    @TableField("back_sku_code")
    private String backSkuCode;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
